package com.community.util;

import org.apache.solr.client.solrj.impl.HttpSolrServer;

public class SolrUtil {

    private static HttpSolrServer solrServer = null;

    public static HttpSolrServer getSolrServer(){
        if(solrServer == null){
            solrServer = new HttpSolrServer(PropertiesUtil.getProperty("solr.url"));
        }
        return solrServer;
    }

}
